package com.cntcdt.api.db.model.base;

import java.io.Serializable;
import java.sql.ResultSet;
import java.util.Date;

/**
 * 这是cdt_consociation_company_day_sum的数据传输对象基类,直接与表对应<br>
 */
public abstract class ConsociationCompanyDaySumModelBase  implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 属性:id<br>
     */
    private Integer id = 0;
    /**
     * 属性:借电人数<br>
     * 含义:借电人数<br>
     */
    private Integer borrowUserSum = 0;
    /**
     * 属性:借电次数<br>
     * 含义:借电次数<br>
     */
    private Integer borrowCDBSum = 0;
    /**
     * 属性:新增用户数<br>
     * 含义:新增用户数<br>
     */
    private Integer newUserSum = 0;
    /**
     * 属性:租金收入<br>
     * 含义:租金收入<br>
     */
    private Double borrowRentSum = 0.0;
    /**
     * 属性:售线收入<br>
     * 含义:售线收入<br>
     */
    private Double sellLineMoneySum = 0.0;
    /**
     * 属性:addTime<br>
     */
    private Date addTime = new Date();
    /**
     * 属性:updateTime<br>
     */
    private Date updateTime = new Date();
    /**
     * 属性:consociationCompanyId<br>
     */
    private Integer consociationCompanyId = 0;
    /**
     * 属性:sortTime<br>
     */
    private Long sortTime = null;
    
    private Double sellCDBSum = 0.0;

    private Integer sellLineNum = 0;
    
    /**
     *  默认构造方法,构造一个默认的ConsociationCompanyDaySumModelBase对象
     */
    public ConsociationCompanyDaySumModelBase(){
    }

    /**
     *  构造函数
     *  @param rs 数据库查询结果集
     */
    public ConsociationCompanyDaySumModelBase(ResultSet rs){
           try{
               this.id = rs.getInt("id");
               this.borrowUserSum = rs.getInt("borrowUserSum");
               this.borrowCDBSum = rs.getInt("borrowCDBSum");
               this.newUserSum = rs.getInt("newUserSum");
               this.borrowRentSum = rs.getDouble("borrowRentSum");
               this.sellLineMoneySum = rs.getDouble("sellLineMoneySum");
               this.addTime = rs.getDate("addTime");
               this.updateTime = rs.getDate("updateTime");
               this.consociationCompanyId = rs.getInt("consociationCompanyId");
               this.sortTime = rs.getLong("sortTime");
               this.sellCDBSum = rs.getDouble("sellCDBSum");
               this.sellLineNum = rs.getInt("sellLineNum");
           }catch(Exception e) {
              e.printStackTrace(); 
           }
    }


    public Integer getSellLineNum() {
		return sellLineNum;
	}

	public void setSellLineNum(Integer sellLineNum) {
		this.sellLineNum = sellLineNum;
	}

	public Double getSellCDBSum() {
		return sellCDBSum;
	}

	public void setSellCDBSum(Double sellCDBSum) {
		this.sellCDBSum = sellCDBSum;
	}

	/**
     * 设置属性id<br>
     * @param id 待设置的属性id的值
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取属性id<br>
     * @return 属性id的值
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置属性借电人数<br>
     * 含义:借电人数<br>
     * @param borrowUserSum 待设置的属性借电人数的值
     */
    public void setBorrowUserSum(Integer borrowUserSum) {
        this.borrowUserSum = borrowUserSum;
    }

    /**
     * 获取属性借电人数<br>
     * 含义:借电人数<br>
     * @return 属性借电人数的值
     */
    public Integer getBorrowUserSum() {
        return borrowUserSum;
    }

    /**
     * 设置属性借电次数<br>
     * 含义:借电次数<br>
     * @param borrowCDBSum 待设置的属性借电次数的值
     */
    public void setBorrowCDBSum(Integer borrowCDBSum) {
        this.borrowCDBSum = borrowCDBSum;
    }

    /**
     * 获取属性借电次数<br>
     * 含义:借电次数<br>
     * @return 属性借电次数的值
     */
    public Integer getBorrowCDBSum() {
        return borrowCDBSum;
    }

    /**
     * 设置属性新增用户数<br>
     * 含义:新增用户数<br>
     * @param newUserSum 待设置的属性新增用户数的值
     */
    public void setNewUserSum(Integer newUserSum) {
        this.newUserSum = newUserSum;
    }

    /**
     * 获取属性新增用户数<br>
     * 含义:新增用户数<br>
     * @return 属性新增用户数的值
     */
    public Integer getNewUserSum() {
        return newUserSum;
    }

    /**
     * 设置属性租金收入<br>
     * 含义:租金收入<br>
     * @param borrowRentSum 待设置的属性租金收入的值
     */
    public void setBorrowRentSum(Double borrowRentSum) {
        this.borrowRentSum = borrowRentSum;
    }

    /**
     * 获取属性租金收入<br>
     * 含义:租金收入<br>
     * @return 属性租金收入的值
     */
    public Double getBorrowRentSum() {
        return borrowRentSum;
    }

    /**
     * 设置属性售线收入<br>
     * 含义:售线收入<br>
     * @param sellLineMoneySum 待设置的属性售线收入的值
     */
    public void setSellLineMoneySum(Double sellLineMoneySum) {
        this.sellLineMoneySum = sellLineMoneySum;
    }

    /**
     * 获取属性售线收入<br>
     * 含义:售线收入<br>
     * @return 属性售线收入的值
     */
    public Double getSellLineMoneySum() {
        return sellLineMoneySum;
    }

    /**
     * 设置属性addTime<br>
     * @param addTime 待设置的属性addTime的值
     */
    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    /**
     * 获取属性addTime<br>
     * @return 属性addTime的值
     */
    public Date getAddTime() {
        return addTime;
    }

    /**
     * 设置属性updateTime<br>
     * @param updateTime 待设置的属性updateTime的值
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取属性updateTime<br>
     * @return 属性updateTime的值
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置属性consociationCompanyId<br>
     * @param consociationCompanyId 待设置的属性consociationCompanyId的值
     */
    public void setConsociationCompanyId(Integer consociationCompanyId) {
        this.consociationCompanyId = consociationCompanyId;
    }

    /**
     * 获取属性consociationCompanyId<br>
     * @return 属性consociationCompanyId的值
     */
    public Integer getConsociationCompanyId() {
        return consociationCompanyId;
    }

    /**
     * 设置属性sortTime<br>
     * @param sortTime 待设置的属性sortTime的值
     */
    public void setSortTime(Long sortTime) {
        this.sortTime = sortTime;
    }

    /**
     * 获取属性sortTime<br>
     * @return 属性sortTime的值
     */
    public Long getSortTime() {
        return sortTime;
    }


    /**
     * 比较两个对象在逻辑上是否相等
     * @see java.lang.Object#equals(java.lang.Object)
     */
    public boolean equals(Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof ConsociationCompanyDaySumModelBase)) {
            return false;
        }

        final ConsociationCompanyDaySumModelBase otherModel = (ConsociationCompanyDaySumModelBase) other;
        if (getId()!=null && !getId().equals(otherModel.getId())) {
            return false;
        }
        return true;
    }

    /**
     * 根据主键生成HashCode
     * @see java.lang.Object#hashCode()
     */
    public int hashCode() {
        StringBuffer buffer = new StringBuffer();
        buffer.append('|').append(id);
        return buffer.toString().hashCode();
    }
}
